package com.ddxcloud.movie.service;

import com.alibaba.fastjson2.JSONObject;
import com.ddxcloud.movie.data.dto.BindCouponDTO;
import com.ddxcloud.movie.data.dto.CreateCodeDTO;
import com.ddxcloud.movie.data.entity.UserCoupon;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CouponsService {

    JSONObject createCode(CreateCodeDTO dto);

    JSONObject getCodeInfo(String couponCode);

    List<UserCoupon> getCouponList(HttpServletRequest request);

    Boolean bind(BindCouponDTO dto, HttpServletRequest request);
}
